package cn.picclife.mwx.manager.sys.service;


import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.picclife.mwx.manager.sys.model.bo.PageCount;
import cn.picclife.mwx.manager.sys.model.po.TTask;
import cn.picclife.mwx.manager.sys.model.po.TTaskNode;


public interface TaskMgMtService {

	PageCount queryTask(PageCount pageCount);
	
	TTask queryByTaskId(Integer taskId);
	
	List<Map<String,String>> getTaskNodeApprove(Integer taskId);

	boolean saveTaskNodeApprove(int taskId, int nodeId, String approveMemo, String optNo,int approveState);

	boolean updateTaskNodeApprove(int taskId, int nodeId, String approveMemo, String optNo, int approveState);
	
	int queryTaskNodeCount(Integer taskId);
	
	int queryTaskNodePassCount(Integer taskId);
	
	int queryTaskNodeNoPassCount(Integer taskId);

	void updateTask(int taskId, int taskState,Date approveTime);
	
	int queryTaskNodeApproveCount(Integer taskId);

	String QueryFileUrl(String fileId);

	void updateTaskNoPass(int taskId, int taskStateNoPass, Date date);

	int queryNodeApproveCounts(int taskId);

	TTask queryNodeByfileid(String fileId);

	TTaskNode queryByNodeId(int taskId, int nodeId);
	
}
